package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_member_partner_task;

import cn.com.api.mapper.ApiT_member_partner_taskMapper;

import cn.com.api.service.ApiT_member_partner_taskService;

/**
 * 
 **/
@Service
public class T_member_partner_taskServiceImplBase {
	@Autowired
	private ApiT_member_partner_taskMapper apiT_member_partner_taskMapper;
    
    // 根据id获取
	public ApiT_member_partner_task findT_member_partner_taskById(Integer id){
		ApiT_member_partner_task t_member_partner_task = apiT_member_partner_taskMapper.findT_member_partner_taskById( id );
		return t_member_partner_task;
	}
    
    //查看数据集
	public List<ApiT_member_partner_task> findT_member_partner_tasks(){
        List<ApiT_member_partner_task> t_member_partner_tasks = apiT_member_partner_taskMapper.findT_member_partner_tasks();
		return t_member_partner_tasks;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findT_member_partner_tasksByMap(HashMap condition){
        List<Map<String, Object>> t_member_partner_tasks = apiT_member_partner_taskMapper.findT_member_partner_tasksByMap(condition);
		return t_member_partner_tasks;
    }
    
	// 添加
	public int insertT_member_partner_task(ApiT_member_partner_task t_member_partner_task){
		int ret_I= apiT_member_partner_taskMapper.insertT_member_partner_task(t_member_partner_task);
		return ret_I;
	}

	// 修改
	public int updateT_member_partner_task(ApiT_member_partner_task t_member_partner_task){
		int ret_I= apiT_member_partner_taskMapper.updateT_member_partner_task(t_member_partner_task);
		return ret_I;
	}
	
    // 删除
	public int deleteT_member_partner_task(Integer id){
		int ret_I= apiT_member_partner_taskMapper.deleteT_member_partner_task( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


